import { createNativeStackNavigator } from '@react-navigation/native-stack'
import Daily from './daily' //每日特价
import Latest from './latest' //最新上架
import Quality from './quality' //精品宠物馆
import Detail from './detail' //详情
import Search from './search' //搜索
import Nearby from './nearby' //搜索
import { PayProvider } from '../AppContext'
import shop_info from '../info/shop_info'
const Stack = createNativeStackNavigator()

export default function HomeLayout() {
  return (
    <PayProvider>
      <Stack.Navigator screenOptions={{ headerShown: false }}>
        {/* 每日特价 */}
        <Stack.Screen name="dauly" component={Daily} />
        {/* 最新上架 */}
        <Stack.Screen name="latest" component={Latest} />
        {/* 精品宠物馆 */}
        <Stack.Screen name="quality" component={Quality} />
        {/* 详情 */}
        <Stack.Screen name="detail" component={Detail} />
        {/* 搜索 */}
        <Stack.Screen name="search" component={Search} />
        {/* 附近 */}
        <Stack.Screen name="nearby" component={Nearby} />
        {/* 详情 */} 
        <Stack.Screen name="商品详细" component={shop_info} />
      </Stack.Navigator>
    </PayProvider>
  )
}
